<!DOCTYPE html>
<html>
<head>
	<title>ss</title>
	<script src="./jquery.min.js"></script>  
 <script src="./bootstrap.min.js"></script>  
 <script src="./bootbox.min.js"></script>  
</head>
<body>
<a href="javascript:;" val="ss" class="del">s</a>
<script type="text/javascript">
	
$(function(){
	$(".del").click(function(){
        var url = $(this).attr('val');
        bootbox.confirm({
            title: "系统提示",
            message: "是否要删除该文章？", 
            callback:function(result){
                if(result){
                	$.get('/');

        }
            },
            buttons: {
                "cancel" : {"label" : "取消"},
                "confirm" : {
                        "label" : "确定",
                        "className" : "btn-danger"
                    }
            }
        });
    });
})

</script>
</body>
</html>